package game.classes;

import java.awt.Graphics;
import java.awt.Image;

/**
 * @author Chris
 */
public class Sprite {

    private Image img;

    public Sprite(Image newimg) {
        this.img = newimg;
    }

    public int getHeight() {
        return this.img.getHeight(null);
    }

    public int getWidth() {
        return this.img.getWidth(null);
    }

    public void draw(Graphics g, int x, int y) {
        g.drawImage(this.img, x, y, null);
    }
}
